import type { IRouter } from '@/types/router';
import { lazy } from 'react';

export const course: IRouter[] = [
  {
    path: '/course',
    meta: {
      title: '教程',
      hidden: false
    },
    children: [
      {
        path: 'entry-course',
        Component: lazy(() => import('@/pages/Course/entry')),
        meta: {
          title: '入门教程'
        }
      },
      {
        path: 'advance-guide',
        Component:lazy(()=>import('@/pages/Course/advance')),
        meta: {
          title: '进阶指南'
        }
      },
      {
        path: 'source-analysis',
        Component:lazy(()=>import('@/pages/Course/source')),
        meta: {
          title: '源码解析'
        }
      },
      {
        path: 'best-practice',
        Component:lazy(()=>import('@/pages/Course/best')),
        meta: {
          title: '最佳实践'
        }
      }
    ]
  }
];
